Optimal. Leaf size=103 \[ \frac {\sqrt {a+b x^2} \left (a^2 f-a b e+b^2 d\right )}{b^3}+\frac {\left (a+b x^2\right )^{3/2} (b e-2 a f)}{3 b^3}+\frac {f \left (a+b x^2\right )^{5/2}}{5 b^3}-\frac {c \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{\sqrt {a}} \]
________________________________________________________________________________________
Rubi [A] time = 0.14, antiderivative size = 103, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {1799, 1620, 63, 208} \begin {gather*} \frac {\sqrt {a+b x^2} \left (a^2 f-a b e+b^2 d\right )}{b^3}+\frac {\left (a+b x^2\right )^{3/2} (b e-2 a f)}{3 b^3}+\frac {f \left (a+b x^2\right )^{5/2}}{5 b^3}-\frac {c \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{\sqrt {a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 63
Rule 208
Rule 1620
Rule 1799
Rubi steps
\begin {align*} \int \frac {c+d x^2+e x^4+f x^6}{x \sqrt {a+b x^2}} \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {c+d x+e x^2+f x^3}{x \sqrt {a+b x}} \, dx,x,x^2\right )\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \left (\frac {b^2 d-a b e+a^2 f}{b^2 \sqrt {a+b x}}+\frac {c}{x \sqrt {a+b x}}+\frac {(b e-2 a f) \sqrt {a+b x}}{b^2}+\frac {f (a+b x)^{3/2}}{b^2}\right ) \, dx,x,x^2\right )\\ &=\frac {\left (b^2 d-a b e+a^2 f\right ) \sqrt {a+b x^2}}{b^3}+\frac {(b e-2 a f) \left (a+b x^2\right )^{3/2}}{3 b^3}+\frac {f \left (a+b x^2\right )^{5/2}}{5 b^3}+\frac {1}{2} c \operatorname {Subst}\left (\int \frac {1}{x \sqrt {a+b x}} \, dx,x,x^2\right )\\ &=\frac {\left (b^2 d-a b e+a^2 f\right ) \sqrt {a+b x^2}}{b^3}+\frac {(b e-2 a f) \left (a+b x^2\right )^{3/2}}{3 b^3}+\frac {f \left (a+b x^2\right )^{5/2}}{5 b^3}+\frac {c \operatorname {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+b x^2}\right )}{b}\\ &=\frac {\left (b^2 d-a b e+a^2 f\right ) \sqrt {a+b x^2}}{b^3}+\frac {(b e-2 a f) \left (a+b x^2\right )^{3/2}}{3 b^3}+\frac {f \left (a+b x^2\right )^{5/2}}{5 b^3}-\frac {c \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{\sqrt {a}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.13, size = 86, normalized size = 0.83 \begin {gather*} \frac {\sqrt {a+b x^2} \left (8 a^2 f-2 a b \left (5 e+2 f x^2\right )+b^2 \left (15 d+5 e x^2+3 f x^4\right )\right )}{15 b^3}-\frac {c \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{\sqrt {a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.09, size = 89, normalized size = 0.86 \begin {gather*} \frac {\sqrt {a+b x^2} \left (8 a^2 f-10 a b e-4 a b f x^2+15 b^2 d+5 b^2 e x^2+3 b^2 f x^4\right )}{15 b^3}-\frac {c \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{\sqrt {a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.03, size = 205, normalized size = 1.99 \begin {gather*} \left [\frac {15 \, \sqrt {a} b^{3} c \log \left (-\frac {b x^{2} - 2 \, \sqrt {b x^{2} + a} \sqrt {a} + 2 \, a}{x^{2}}\right ) + 2 \, {\left (3 \, a b^{2} f x^{4} + 15 \, a b^{2} d - 10 \, a^{2} b e + 8 \, a^{3} f + {\left (5 \, a b^{2} e - 4 \, a^{2} b f\right )} x^{2}\right )} \sqrt {b x^{2} + a}}{30 \, a b^{3}}, \frac {15 \, \sqrt {-a} b^{3} c \arctan \left (\frac {\sqrt {-a}}{\sqrt {b x^{2} + a}}\right ) + {\left (3 \, a b^{2} f x^{4} + 15 \, a b^{2} d - 10 \, a^{2} b e + 8 \, a^{3} f + {\left (5 \, a b^{2} e - 4 \, a^{2} b f\right )} x^{2}\right )} \sqrt {b x^{2} + a}}{15 \, a b^{3}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.40, size = 127, normalized size = 1.23 \begin {gather*} \frac {c \arctan \left (\frac {\sqrt {b x^{2} + a}}{\sqrt {-a}}\right )}{\sqrt {-a}} + \frac {15 \, \sqrt {b x^{2} + a} b^{14} d + 3 \, {\left (b x^{2} + a\right )}^{\frac {5}{2}} b^{12} f - 10 \, {\left (b x^{2} + a\right )}^{\frac {3}{2}} a b^{12} f + 15 \, \sqrt {b x^{2} + a} a^{2} b^{12} f + 5 \, {\left (b x^{2} + a\right )}^{\frac {3}{2}} b^{13} e - 15 \, \sqrt {b x^{2} + a} a b^{13} e}{15 \, b^{15}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 134, normalized size = 1.30 \begin {gather*} \frac {\sqrt {b \,x^{2}+a}\, f \,x^{4}}{5 b}-\frac {4 \sqrt {b \,x^{2}+a}\, a f \,x^{2}}{15 b^{2}}+\frac {\sqrt {b \,x^{2}+a}\, e \,x^{2}}{3 b}-\frac {c \ln \left (\frac {2 a +2 \sqrt {b \,x^{2}+a}\, \sqrt {a}}{x}\right )}{\sqrt {a}}+\frac {8 \sqrt {b \,x^{2}+a}\, a^{2} f}{15 b^{3}}-\frac {2 \sqrt {b \,x^{2}+a}\, a e}{3 b^{2}}+\frac {\sqrt {b \,x^{2}+a}\, d}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.35, size = 122, normalized size = 1.18 \begin {gather*} \frac {\sqrt {b x^{2} + a} f x^{4}}{5 \, b} + \frac {\sqrt {b x^{2} + a} e x^{2}}{3 \, b} - \frac {4 \, \sqrt {b x^{2} + a} a f x^{2}}{15 \, b^{2}} - \frac {c \operatorname {arsinh}\left (\frac {a}{\sqrt {a b} {\left | x \right |}}\right )}{\sqrt {a}} + \frac {\sqrt {b x^{2} + a} d}{b} - \frac {2 \, \sqrt {b x^{2} + a} a e}{3 \, b^{2}} + \frac {8 \, \sqrt {b x^{2} + a} a^{2} f}{15 \, b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.81, size = 99, normalized size = 0.96 \begin {gather*} \sqrt {b\,x^2+a}\,\left (\frac {8\,a^2\,f}{15\,b^3}+\frac {f\,x^4}{5\,b}-\frac {4\,a\,f\,x^2}{15\,b^2}\right )+\frac {d\,\sqrt {b\,x^2+a}}{b}-\frac {c\,\mathrm {atanh}\left (\frac {\sqrt {b\,x^2+a}}{\sqrt {a}}\right )}{\sqrt {a}}-\frac {e\,\sqrt {b\,x^2+a}\,\left (2\,a-b\,x^2\right )}{3\,b^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 37.87, size = 102, normalized size = 0.99 \begin {gather*} \frac {f \left (a + b x^{2}\right )^{\frac {5}{2}}}{5 b^{3}} - \frac {\left (a + b x^{2}\right )^{\frac {3}{2}} \left (2 a f - b e\right )}{3 b^{3}} + \frac {\sqrt {a + b x^{2}} \left (a^{2} f - a b e + b^{2} d\right )}{b^{3}} + \frac {c \operatorname {atan}{\left (\frac {1}{\sqrt {- \frac {1}{a}} \sqrt {a + b x^{2}}} \right )}}{a \sqrt {- \frac {1}{a}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________